﻿@model GameSchool.Models.ViewModels.CourseView

@{
    ViewBag.Title = "GetCourse";
}

<div class="span8 offset2">
    <h2>@Model.m_theCourse.Name</h2>

    @Html.Action("CourseTabs", "Student", new { id = Model.m_theCourse.ID })
    <!--<div class="tabbable">
      <ul class="nav nav-tabs">
        <li class="active"> <a href="@Url.Action("GetCourse", "Student", new { id = Model.m_theCourse.ID })">@Model.m_theCourse.Name</a></li>
        <li><a href="#" data-toggle="tab">Herp</a></li>
      </ul>
      <div class="tab-content">
        <div class="tab-pane active" id="tab1">
          <p>I'm in Section 1.</p>
        </div>
        <div class="tab-pane" id="tab2">
          <p>Howdy, I'm in Section 2.</p>
        </div>
      </div>
    </div>-->
</div>

<div class="offset7 span3">
<ul class="nav nav-pills nav-stacked">
    @{
        string finished;
        foreach (var lvl in Model.m_theLevels)
        {
            if (Model.m_finishedLvlID.Contains(lvl.ID))
            {
                finished = "alert-success";
            }
            else 
            {
                finished = "alert-error";
            }
        
            <li class="alert @finished">@Html.ActionLink("Borð " + lvl.NumberInCourse + ": " + lvl.Name, 
                                                                "/GetLevel/" + lvl.ID , "Student")</li>
        }
    }
</ul>
</div>

<!--@Html.ActionLink("Fyrirlestrar", "GetLecturesForLevel/" + Model.m_theCourse.ID, "Student")-->